<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/include.inc.jsp"%>
		<form id="pagerForm" method="post"
			action="cfgformat_list">
			<input type="hidden" name="numPerPage" value="${numPerPage}" />
			<input type="hidden" name="pageNum" value="1" />
			<input type="hidden" name="name" value="${name}" />
		</form>
		<div class="page">
			<div class="pageHeader">
				<form onsubmit="return navTabSearch(this);"
					action="cfgformat_list" method="post">
					<div class="searchBar">
						<ul class="searchContent">
							<li>
								<label>
									用户名：
								</label>
								<input type="text" id="name" name="name" />
							</li>
							<li>
								<div class="buttonActive">
									<div class="buttonContent">
										<button type="submit">
											检索
										</button>
									</div>
								</div>
							</li>
						</ul>
					</div>
				</form>
			</div>
			<div class="pageContent">
				<div class="panelBar">
					<ul class="toolBar">
						<li>
							<a class="add" href="toadduserentity" target="dialog"><span>添加</span></a>
						</li>
						<li>
							<a class="delete" href="todeleteuserentity?id={slt_id}"
								target="navTabTodo" title="确定要删除吗?"><span>删除</span>
							</a>
						</li>
						<li>
							<a class="edit" href="toedituserentity?id={slt_id}" target="dialog"><span>修改</span>
							</a>
						</li>
					</ul>
				</div>
				<table class="table" width="100%" layouth="138">
					<thead>
						<tr>
							<th>
								编号
							</th>
							<th>
								协议格式名称
							</th>
							<th>
								版本
							</th>
							<th>
								描述
							</th>
							<th>
								间隔符
							</th>
							<th>
								格式
							</th>
							<th>
								报文操作位置
							</th>
							<th>
								业务报文标识位置
							</th>
							<th>
								所回复业务报文标识位置
							</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach var="item" items="${dataList}" varStatus="s">
							<tr target="slt_id" rel="${item.oid}">
								<td>${s.index + 1}</td>
								<td>
									${item.name}
								</td>
								<td>
									${item.fmtver}
								</td>
								<td>
									${item.description}
								</td>
								<td>
									${item.delim}
								</td>
								<td>
									${item.format}
								</td>
								<td>
									${item.pathopinfo}
								</td>
								<td>
									${item.pathdocid}
								</td>
								<td>
									${item.pathorigdocid}
								</td>
							</tr>
						</c:forEach> 
					</tbody>
				</table>
					<div class="panelBar">
					<div class="pages">
						<span>显示</span>
						<select name="numPerPage"
							onchange="navTabPageBreak({numPerPage:this.value})">
							<c:forEach begin="10" end="40" step="10" varStatus="s">
								<option value="${s.index}" ${numPerPage eq s.index ? 'selected="selected"' : ''}>
									${s.index}
								</option>
							</c:forEach>
						</select>
						<span>共${countitem}条</span>
					</div>
					<div currentPage="${currentPage}" pageNumShown="10"
						numPerPage="${numPerPage }" totalCount="${countitem}"
						targetType="navTab" class="pagination">
					</div>
				</div>
			</div>
		</div>